<div ng-controller="logController">
	<div class="bg-light lter b-b wrapper-md">
		<h1 class="m-n font-thin h3">日志管理</h1>
	</div>
	<div class="panel panel-default m-b-none">
  		<div class="panel-body">
  			<form class="form-inline" role="form">
				<div class="form-group">
					<label class="sr-only" >用户</label>
					<input class="form-control" placeholder="用户"  ng-model="params.userId.term">
				</div>
				<div class="form-group" ng-controller="DatepickerDemoCtrl">
					<label class="sr-only" >开始日期</label>
			        <span class="input-group">
	                    <input type="text" name="startTime" class="form-control" uib-datepicker-popup="yyyy-MM-dd"  placeholder="开始日期" ng-model="params.startTime.term" 
	                    is-open="status.opened" datepicker-options="dateOptions" close-text="关闭" clear-text="重置" current-text="今天"  datepicker-append-to-body="true"/>
	                    <span class="input-group-btn">
	                    <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
	                    </span>
                    </span>
				</div>
				<div class="form-group" ng-controller="DatepickerDemoCtrl">
					<label class="sr-only" >结束日期</label>
			        <span class="input-group">
	                    <input type="text" name="endTime" class="form-control" uib-datepicker-popup="yyyy-MM-dd"  placeholder="结束日期" ng-model="params.endTime.term" 
	                    is-open="status.opened" datepicker-options="dateOptions" close-text="关闭" clear-text="重置" current-text="今天"  datepicker-append-to-body="true"/>
	                    <span class="input-group-btn">
	                    <button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
	                    </span>
                    </span>
				</div>
				<div class="form-group">
					<label class="sr-only" >模块</label>
					<div app-dict-select="params.littleModule.term" dict-type="littleModuleLogType" show-header="请选择模块"></div>
				</div>
				<div class="form-group">
					<label class="sr-only" >操作类型</label>
					<div app-dict-select="params.type.term" dict-type="logOperationType" show-header="请选择操作类型"></div>
				</div>
				<div class="form-group">
					<label class="sr-only" >是否成功</label>
					<div app-dict-select="params.isSuccess.term" dict-type="yesOrNo" show-header="请选择是否成功"></div>
				</div>
				<div class="form-group">
					<label class="sr-only" >备注</label>
					<input class="form-control" placeholder="备注"  ng-model="params.msg.term">
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.load()">查询</button>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.reset()">清空</button>
				</div>
			</form>
  		</div>
  	</div>
	<div class="wrapper-md no-padder">
		<div class="panel panel-default">
			<table class="table m-b-none" app-footable data-page="false" data-filter-text-only="true">
				<thead>
					<tr>
						<th data-sort-name="userId">用户</th>
						<th data-sort-name="time">时间</th>
						<th data-sort-name="ip">IP</th>
						<th data-sort-name="littleModule">模块</th>
						<th data-sort-name="type">操作类型</th>
						<th data-sort-name="isSuccess">是否成功</th>
						<th data-sort-ignore="true">备注</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="log in Table1.page.rows">
						<td ng-bind="log.userId"></td>
						<td ng-bind="log.time"></td>
						<td ng-bind="log.ip"></td>
						<td app-dict="log.littleModule" dict-type="littleModuleLogType"></td>
						<td app-dict="log.type" dict-type="logOperationType"></td>
						<td app-dict="log.isSuccess" dict-type="yesOrNo"></td>
						<td ng-bind="log.msg"></td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="7" class="text-center">
							<div app-pagination="Table1"></div>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
	</div>
</div>